/*
 * @Descripttion: 
 * @version: 
 * @Author: by
 * @Date: 2021-08-13 16:34:01
 * @LastEditors: jgg
 * @LastEditTime: 2022-03-02 15:22:59
 */
import request from '../utils/request'

const commonApi = {}
// // 地区下拉框
// commonApi.areaList = (areaCode) => {
//     return request({
//         url: '/web/sys/area/listCombobox',
//         method: 'get',
//         params: {areaCode}
//     })
// }

// // 地区下拉框
// commonApi.stationTypeList = () => {
//     return request({
//         url: '/web/sl/st/stbprp/getStationTypeCombobox',
//         method: 'get',
//         params: {}
//     })
// }
// 字典公用
commonApi.getByType = (params) => {
    return request({
        url: `/web/sys/dict/getByType?dictType=${params}`,
        method: 'get',
        params:{}
    })
}
//
commonApi.findCity = (params) => {
    return request({
        url: `/workplatform/area/findByCity/${params}`,
        method: 'get',
        params:{}
    })
}
commonApi.findArea = (params) => {
    return request({
        url: `/workplatform/area/findByArea/${params}`,
        method: 'get',
        params:{}
    })
}
commonApi.queryAeraList = (params) => {
    return request({
        url: `/workplatform/area/queryAeraList`,
        method: 'post',
        params
    })
}



//省 市 区 水库树列表接口 
commonApi.queryAera = (params) => {
    return request({
        url: `/workplatform/area/queryAera`,
        method: 'post',
        data:{}
    })
}

commonApi.findByEqLists = (params) => {
    return request({
        url: `/scareen/equitmentRun/findByEqLists/${params}`,
        method: 'get',
        params:{}
    })
}

export default commonApi